package com.jfl.core.config;

import org.apache.shiro.authc.AuthenticationToken;

import lombok.Data;

/**
 * <一句话功能简述>
 *  
 * @author  赵炎
 * @version  [V1.00, 2019年7月18日]
 * @see  [相关类/方法]
 * @since V1.00
 */
@Data
public class JwtAuthenticationToken implements AuthenticationToken
{

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 7132186697494420213L;
    
    private String token;
    
    private String userName;
    
    private String auth;
    
    private Boolean isLogin;
    
    private String clientIp;

    @Override
    public Object getPrincipal()
    {
        return userName;
    }

    @Override
    public Object getCredentials()
    {
        return auth;
    }
    
}
